* {
  margin: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  width: 100%;
  height: 100vh;
  background-color: #745ae9;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
body .search {
  position: relative;
  height: 50px;
}
body .search .searchBtn {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background-color: #fff;
  transition: transform 0.3s ease;
  cursor: pointer;
}
body .search .searchBtn .iconfont {
  font-size: 24px;
}
body .search .searchBtn.active {
  transform: translateX(99px);
}
body .search .inputSearch {
  display: flex;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
}
body .search .inputSearch input {
  width: 50px;
  height: 50px;
  outline: none;
  border: 0;
  font-size: 18px;
  padding-left: 10px;
  transition: all 0.3s ease;
}
body .search .inputSearch input.active {
  width: 200px;
  transform: translateX(-99px);
}
